package com.webside.front.index.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
import com.webside.front.common.mapper.AdvertisementMapper;
import com.webside.front.common.mapper.BSeriesMapper;
import com.webside.front.common.mapper.BdictionaryMapper;
import com.webside.front.common.mapper.PBannerMapper;
import com.webside.front.common.model.AdvertisementEntity;
import com.webside.front.common.model.BSeries;
import com.webside.front.common.model.Bdictionary;
import com.webside.front.common.model.PBanner;
import com.webside.front.index.service.IndexService;
import com.webside.loginfo.model.LogInfoEntity;

@Service("indexService")
public class IndexServiceImpl extends AbstractService<LogInfoEntity, Long> implements IndexService {

	
	@Autowired
	private PBannerMapper pBannerMapper;
	@Autowired
	public BSeriesMapper bSerierdao;
	 @Autowired
	 private BdictionaryMapper bdictionaryMapper;
	 @Autowired
	 private AdvertisementMapper advertisementMapper;
	     /* 
		 * 电影
		 */ 
	@Override
	public List<Bdictionary> selectByPrimary(Bdictionary bdictionary) {
		
		return bdictionaryMapper.selectByPrimary(bdictionary);
	}
	/* 
	 * 电视剧
	 */ 
	@Override
	public List<Bdictionary> selectTVplay(Bdictionary bdictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTVplay(bdictionary);
	}
	/* 
	 * 动漫
	 */ 
	@Override
	public List<Bdictionary> selectComic(Bdictionary bdictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectComic(bdictionary);
	}
	
	// 查询全部
	@Override
	public List<PBanner> getAllSubject() {

		return pBannerMapper.getAllSubject();
	}


	//影迷力荐
		@Override
		public List<BSeries> selectByPrimaryALL() {
			 
			return bSerierdao.selectByPrimaryALL();
		}
		//猜你喜欢
		@Override
		public List<BSeries> selectByPrimarySelective(BSeries record) {
			 
			return bSerierdao.selectByPrimarySelective(record);
		}
		@Override
		public List<BSeries> selectByPrimaryTrailer(BSeries record) {
			return bSerierdao.selectByPrimaryTrailer(record);
		}
	 
	  
	 
		 //卫视同步
			 
			@Override
			public List<BSeries> selectByallSatellite(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectByallSatellite(record);
			}
		 
			@Override
			public List<BSeries> selectSatellite(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectSatellite(record);
			}
			//日韩热播
			//@Override
		  public List<BSeries> selectByKorea(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectByKorea(record);
			} 
			 
			@Override
			public List<BSeries> selectKorea(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectKorea(record);
			}

			 //美剧精选
		     
			@Override
			public List<BSeries> selectAmerican(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectAmerican(record);
			}
			 //佳品有约
			@Override
			public List<BSeries> selectJiapin(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectJiapin(record);
			}
			@Override
			public List<BSeries> selectByJiapin(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectByJiapin(record);
			}
			@Override
			public List<BSeries> selectByALLJiapin(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectByALLJiapin(record);
			}
			 //影院大片
			@Override
			public List<BSeries> selectCinema(BSeries record) {
				 
				return bSerierdao.selectCinema(record);
			}
			//动漫剧场
			@Override
			public List<BSeries> selectByAnimation(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectByAnimation(record);
			}
			@Override
			public List<BSeries> selectAnimation(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectAnimation(record);
			}
			 //电视剧榜
			@Override
			public List<BSeries> selectplay(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectplay(record);
			}
			 //佳品电视剧榜
			@Override
			public List<BSeries> selectJiapinplay(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectJiapinplay(record);
			}
			@Override
			public List<BSeries> selectTrailer(BSeries record) {
				// TODO Auto-generated method stub
				return bSerierdao.selectTrailer(record);
			}
			@Override
			public List<BSeries> selectByTvplayALL() {
				// TODO Auto-generated method stub
				return bSerierdao.selectByTvplayALL();
			}
			@Override
			public List<BSeries> selectByLikeCount() {
				// TODO Auto-generated method stub
				return bSerierdao.selectByLikeCount();
			}
			//@Override
			public List<PBanner> getAllTarget() {
				// TODO Auto-generated method stub
				return pBannerMapper.getAllTarget();
			}
			@Override
			public List<Bdictionary> selectKeywords() {
				// TODO Auto-generated method stub
				return bdictionaryMapper.queryBdictionarysKeywords();
			}
			 
          
			@Override
			public List<HashMap<String,Object>> queryAdByAll(String date, String code) {
				// TODO Auto-generated method stub
				return advertisementMapper.queryAdByAll(date,code);
			}
			@Override
			public List<Bdictionary> selectPageInfo() {
				// TODO Auto-generated method stub
				return bdictionaryMapper.queryBdictionarysINDEX();
			}
		 


		
}
